//package com.appserver.common.config;
//
//import com.alibaba.fastjson.JSON;
//import com.alibaba.fastjson.serializer.SerializeConfig;
//import com.alibaba.fastjson.serializer.SerializerFeature;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// *
// * 相关配置挪到spring-clout-api-config里了，这里先注释掉，留一段时间
// * Created by guoyanjiang on 2018/10/11.
// */
//@Configuration
//public class FastJsonConfig {
//
//    Logger logger = LoggerFactory.getLogger(getClass());
//
//    @Bean
//    public SerializeConfig init(){
//        //这里把FastJson也配下全局
//        SerializeConfig.getGlobalInstance().propertyNamingStrategy = com.alibaba.fastjson.PropertyNamingStrategy.SnakeCase;
//        JSON.DEFAULT_GENERATE_FEATURE |= SerializerFeature.WRITE_MAP_NULL_FEATURES;
//        logger.info("init fast-json config");
//        return SerializeConfig.getGlobalInstance();
//    }
//}
